<template>
	<view class="delivery-order">

		<view class="delivery-order-top">
			<!-- 当前订单状态 -->
			待发货
		</view>

		<view class="delivery-order-top">
			<!-- 收货地址 -->
			<view class="address-one-item">
				黄润平 13854223194 <text class="default-address-icon">默认</text>
			</view>
			<view class="address-one-item">
				福建省 厦门市 湖里区 江头街道1247号306室
			</view>
		</view>

		<!-- 商品 -->
		<view class="current-shops card">
			<view class="delivery-item-shops">
				<image :src="imagesUrl('delivery-item.png')" mode="" class="image" />
				<view class="right">
					<view class="right-name">
						商品名称商品名称商品名称商品名称商品名称商品名称商品名称商品名称
					</view>
					<!-- 类型 -->
					<view class="right-type">
						至尊款
					</view>
					<view class="right-number">
						<text>￥30.36</text>
						<text>×2</text>
					</view>
				</view>
			</view>

			<!-- 查看全部 -->
			<view class="look-all-box">
				<uni-icons type="bottom" color="#FF7803" size="32rpx"></uni-icons>
				<text class="look-all">展开</text>
				<text>（共6件）</text>
			</view>
		</view>

		<!-- 描述 -->
		<view class="current-des card">
			<view class="current-des-item">
				<view class="left" style="display: flex;">
					<text>运费</text>
					<uni-icons type="info" size="32rpx" color="#666" style="margin-left: 10rpx;"></uni-icons>
				</view>
				<view class="right">
					￥15.00
				</view>
			</view>
			<view class="current-des-item">
				<view class="left">
					优惠
				</view>
				<view class="right">
					-￥6.00
				</view>
			</view>
			<view class="current-des-item">
				<view class="left">
					实付
				</view>
				<view class="right" style="color: #F51F43;">
					￥118.00
				</view>
			</view>
			<view class="current-des-item">
				<view class="left">
					订单编号
				</view>
				<view class="right lighter">
					449219182642723
					<!-- 复制图标 -->
					<uni-icons custom-prefix="iconfont" type="icon-fuzhi" size="14" color="#333"
						style="margin-left: 10rpx;">
					</uni-icons>
				</view>
			</view>
			<view class="current-des-item">
				<view class="left">
					支付方式
				</view>
				<view class="right lighter">
					微信支付
				</view>
			</view>
			<view class="current-des-item">
				<view class="left">
					下单时间
				</view>
				<view class="right lighter">
					2060/07/02 11:36:23
				</view>
			</view>
		</view>

		<view style="height: 200rpx;"></view>

		<!-- 底部按钮组 -->
		<view class="bottom-btns">
			<view class="btn">
				联系客服
			</view>
			<view class="btn">
				修改地址
			</view>
			<!-- <view class="btn">
				查看物流
			</view> -->
			<view class="btn confirm">
				确认收货
			</view>
			<!-- <view class="btn">
				删除订单
			</view> -->
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		},
		mounted() {}
	}
</script>

<style lang="scss" scoped>
	.delivery-order {
		position: relative;
		width: 100vw;
		height: 100vh;
		padding-bottom: 100rpx;
		font-size: 26rpx;

		.delivery-order-top {
			width: 690rpx;
			padding: 32rpx 20rpx;
			border-radius: 16rpx;
			margin: 18rpx auto 0;
			font-size: 36rpx;
			font-weight: 600;
			color: #333;
			line-height: 70rpx;
			background: #fff;
			box-sizing: border-box;

			// 地址
			.address-one-item {
				display: flex;
				font-size: 28rpx;
				font-weight: 500;
				line-height: 28rpx;
				color: #333;

				&:nth-child(2) {
					margin-top: 16rpx;
					font-size: 26rpx;
					font-weight: normal;
					color: #666;

					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
				}

				.default-address-icon {
					margin-left: 20rpx;
					width: 52rpx;
					height: 32rpx;
					border-radius: 4rpx;
					padding: 4rpx 8rpx;
					background: #F9EBDF;
					color: #FF7803;
					font-size: 18rpx;
					font-weight: 500;
					box-sizing: border-box;
				}
			}
		}

		.card {
			width: 690rpx;
			padding: 0 20rpx;
			margin: 18rpx auto;
			border-radius: 16rpx;
			background: #fff;
			box-sizing: border-box;
		}

		.current-shops {
			padding-top: 32rpx;

			// 订单商品
			.delivery-item-shops {
				display: flex;
				margin-top: 32rpx;

				.image {
					width: 120rpx;
					height: 120rpx;
					border-radius: 8rpx;
				}

				.right {
					width: 510rpx;
					margin-left: 20rpx;

					.right-name {
						text-overflow: ellipsis;
						white-space: nowrap;
						overflow: hidden;
					}

					.right-type {
						color: #FC4C14;
						font-family: YouSheBiaoTiHei;
						font-size: 28rpx;
						margin: 10rpx 0;
					}

					.right-number {
						display: flex;
						justify-content: space-between;
					}
				}
			}

			.look-all-box {
				display: flex;
				align-items: center;
				justify-content: center;
				padding: 22rpx 0;
				color: #FF7803;
				font-size: 24rpx;
				text-align: center;
			}
		}

		.current-des {

			.current-des-item {
				display: flex;
				justify-content: space-between;
				line-height: 72rpx;

				&:nth-child(3) {
					border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
				}

				.left {
					color: #333;
				}

				.right {
					&.lighter {
						font-size: 24rpx;
						color: #999;
					}
				}
			}
		}

		.bottom-btns {
			position: fixed;
			bottom: 0;
			width: 100vw;
			padding: 16rpx 30rpx;
			display: flex;
			justify-content: flex-end;
			background: #fff;
			z-index: 99;

			// 预设一个高度
			padding-bottom: calc(18rpx + constant(safe-area-inset-bottom));
			padding-bottom: calc(18rpx + env(safe-area-inset-bottom));

			.btn {
				width: 176rpx;
				height: 72rpx;
				border-radius: 36rpx;
				border: 2rpx solid #D0D0D0;
				margin-left: 16rpx;
				text-align: center;
				line-height: 72rpx;
				color: #333;
				font-size: 28rpx;

				&.confirm {
					border: 0;
					background: linear-gradient(270deg, #FC4C14 0%, #FD7303 100%);
					color: #fff;
				}
			}
		}
	}
</style>